/**************************************************************************/
/*                                                                        */
/* Copyright (c) Intson Technology Co.,Ltd.           */
/*  */
/*                                                                        */
/*                                                                        */
/*    created:    2009-4-9                                             */ 
/*    filename:   I8ShellWnd.cpp                                          */ 
/*    author:     Derek Huang                                                  */  
/*    purpose:                                                            */ 
/*                                                                        */
/* ************************************************************************/
#include "iPODWnd.h"

CiPODWnd::CiPODWnd()
{
	
}
CiPODWnd::~CiPODWnd()
{

}
/*
void CiPODWnd::PaintWin(HDC hdc, RECT* prcUpdate )
{
	CMzWndEx::PaintWin( hdc, prcUpdate );
}
*/
void CiPODWnd::PaintWinEx(HDC hdcMem, unsigned char * &hdc, RECT* prcUpdate)
{
	CMzWndEx::PaintWinEx(hdcMem, hdc, prcUpdate );
}
BOOL CiPODWnd::OnInitDialog()
{
	if( !CMzWndEx::OnInitDialog() )
	{
		return FALSE;
	}
//	WinManager *pMan = GetWinManager();
	SetForegroundWindow( m_hWnd );

	RECT rtUiWin[MAX_UIWIN] = 
	{
		0, 0, 800, 480,
		0, 0, 200, 480,
		600, 0, 800, 480,
	};

	m_UIDesktopBg.SetPos(rtUiWin[UIWIN_BACKGROUND].left,rtUiWin[UIWIN_BACKGROUND].top,
					rtUiWin[UIWIN_BACKGROUND].right-rtUiWin[UIWIN_BACKGROUND].left,
					rtUiWin[UIWIN_BACKGROUND].bottom-rtUiWin[UIWIN_BACKGROUND].top);
	AddUiWin(&m_UIDesktopBg);
	m_UIDesktopBg.InitBacgroundImage(m_hWnd, MzGetInstanceHandle(), 1003);

	m_UiWinType.SetPos(rtUiWin[UIWIN_TYPE].left,rtUiWin[UIWIN_TYPE].top,
					rtUiWin[UIWIN_TYPE].right-rtUiWin[UIWIN_TYPE].left,
					rtUiWin[UIWIN_TYPE].bottom-rtUiWin[UIWIN_TYPE].top);
	m_UiWinType.SetVisible(true);
	m_UiWinType.SetID(1000);
	AddUiWin(&m_UiWinType);
	m_UiWinType.InitUiWin();

	m_UiWinMusicSwitch.SetPos(rtUiWin[UIWIN_MUSIC_SWITCH].left,rtUiWin[UIWIN_MUSIC_SWITCH].top,
					rtUiWin[UIWIN_MUSIC_SWITCH].right-rtUiWin[UIWIN_MUSIC_SWITCH].left,
					rtUiWin[UIWIN_MUSIC_SWITCH].bottom-rtUiWin[UIWIN_MUSIC_SWITCH].top);
	m_UiWinMusicSwitch.SetVisible(true);
	m_UiWinMusicSwitch.SetID(1001);
	AddUiWin(&m_UiWinMusicSwitch);
	m_UiWinMusicSwitch.InitUiWin();

	return TRUE;
}
void CiPODWnd::OnMzCommand(WPARAM wParam, LPARAM lParam)
{
	switch( LOWORD( wParam ) )
	{
	case 0:
		{

		}
		break;
	}
}

